#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}

# copy sql
echo "begin copy sql "
cp ../sql/mxz_20211118.sql ./mysql/db
cp ../sql/mxz_config_20211118.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../mxz-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy mxz-gateway "
cp ../mxz-gateway/target/mxz-gateway.jar ./mxz/gateway/jar

echo "begin copy mxz-monitor "
cp ../mxz-visual/mxz-monitor/target/mxz-monitor.jar  ./mxz/visual/monitor/jar

echo "begin copy mxz-system "
cp ../mxz-modules/mxz-system/target/mxz-system.jar ./mxz/modules/system/jar

echo "begin copy mxz-job "
cp ../mxz-modules/mxz-job/target/mxz-job.jar ./mxz/modules/job/jar

echo "begin copy mxz-gen "
cp ../mxz-modules/mxz-gen/target/mxz-gen.jar ./mxz/modules/gen/jar

